# 代码运行配置设置
class settings:

    def __init__(self,
                 output_path,
                 global_match_path,
                 output_fIle_name,
                 filepath,
                 all_data,
                 excel,
                 start_time,
                 end_time,
                 sleep_time):
        '''
        Description:
        :param output_path: 输出路径
        :param global_match_path: 是否全局匹配
        :param output_fIle_name: 输出文件名
        :param filepath: 输出文件路径
        :param all_data: 是否全量数据
        :param excel: Excel对象
        '''
        self.output_path = output_path
        self.global_match_path = global_match_path
        self.output_fIle_name = output_fIle_name
        self.file_path = filepath
        self.excel = excel
        self.all_data = all_data
        self.start_time = start_time
        self.end_time = end_time
        self.sleep_time = sleep_time
        self.titleContainer = []
        self.cacheClearForSaveData = 0
        print('加载全局配置属性成功')
        print(f'(输出路径      output_path:      -->  {self.output_path})')
        print(f'(全局模搜索    global_match_path:-->  {self.global_match_path})')
        print(f'(输出文件名    output_fIle_name: -->  {self.output_fIle_name})')
        print(f'(文件路径      file_path:        -->  {self.file_path})')
        print(f'(excel对象     excel:            -->  {self.excel})')
        print(f'(全量数据      all_data:         -->  {self.all_data})')
        print(f'(开始时间      start_time:       -->  {self.start_time})')
        print(f'(结束时间      end_time:         -->  {self.end_time})')
        print(f'(睡眠时间      sleep_time:       -->  {self.sleep_time})')
        print(f'(标题容器      titleContainer:   -->  {self.titleContainer})')
        print('全局配置属性加载完成')
        print('---------------------------------')

